package com.app.miwawa.api.esm.entity.view;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.framework.common.api.entity.CommonEntityUUID;
import org.framework.common.api.support.annotation.Search;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 客户资料视图
 * <p>描述: </p>
 * <p>Company: Professional</p>
 * @author chanlong(陈龙)
 * @date 2016年1月23日 上午8:49:14
 * @version 1.0.2016
 */
@Entity @Table(name = "vb_customer")
public class CustomerView extends CommonEntityUUID {

	/** serialVersionUID(long):. */
	private static final long serialVersionUID = -503951257936761562L;
	
	// customer
	private String customerid;
	
	private String code;
	
	@Search
	private String market;
	
	@Search
	private String source;
	
	// 转介绍人
	private String referral;
	
	// selling
	private String follows;
	
	private String content;
	
	private Integer intention;
	
	@Temporal(TemporalType.TIMESTAMP)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm", timezone="GMT+8")
	private Date lastDate;
	
	@Temporal(TemporalType.TIMESTAMP)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm", timezone="GMT+8")
	private Date nextDate;
	
	// bespoke
	private String bespoke;
	
	private String bespokeType;
	
	@Temporal(TemporalType.TIMESTAMP)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm", timezone="GMT+8")
	private Date bespokeDate;
	
	@Temporal(TemporalType.TIMESTAMP)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm", timezone="GMT+8")
	private Date promiseDate;
	
	private String comming;
	
	@Temporal(TemporalType.TIMESTAMP)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm", timezone="GMT+8")
	private Date commingDate;
	
	private String commingState;
	
	// parents
	private String app;
	
	private String email;
	
	@Search
	private String mobile;
	
	private String wechat;
	
	@Search
	private String parent;
	
	private String relation;
	
	private String isparent;
	
	private String parentid;
	
	private Integer moonage;
	
	@Search
	private String student;
	
	private String studentid;
	
	private String remark;
	
	@Temporal(TemporalType.DATE)
	@JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
	private Date birthday;
	
	// losted
	private String lostedId;
	
	private String lostedDate;
	
	private String lostedReason;
	
	private String lostedRemark;
	
	@Temporal(TemporalType.DATE)
	@JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
	private Date createDate;
	
	private String userid;
	
	@Search
	private String username;

	public String getCustomerid() {
		return customerid;
	}

	public void setCustomerid(String customerid) {
		this.customerid = customerid;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMarket() {
		return market;
	}

	public void setMarket(String market) {
		this.market = market;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getReferral() {
		return referral;
	}

	public void setReferral(String referral) {
		this.referral = referral;
	}

	public String getFollows() {
		return follows;
	}

	public void setFollows(String follows) {
		this.follows = follows;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getIntention() {
		return intention;
	}

	public void setIntention(Integer intention) {
		this.intention = intention;
	}

	public Date getLastDate() {
		return lastDate;
	}

	public void setLastDate(Date lastDate) {
		this.lastDate = lastDate;
	}

	public Date getNextDate() {
		return nextDate;
	}

	public void setNextDate(Date nextDate) {
		this.nextDate = nextDate;
	}

	public String getBespoke() {
		return bespoke;
	}

	public void setBespoke(String bespoke) {
		this.bespoke = bespoke;
	}

	public String getBespokeType() {
		return bespokeType;
	}

	public void setBespokeType(String bespokeType) {
		this.bespokeType = bespokeType;
	}

	public Date getBespokeDate() {
		return bespokeDate;
	}

	public void setBespokeDate(Date bespokeDate) {
		this.bespokeDate = bespokeDate;
	}

	public Date getPromiseDate() {
		return promiseDate;
	}

	public void setPromiseDate(Date promiseDate) {
		this.promiseDate = promiseDate;
	}

	public String getComming() {
		return comming;
	}

	public void setComming(String comming) {
		this.comming = comming;
	}

	public Date getCommingDate() {
		return commingDate;
	}

	public void setCommingDate(Date commingDate) {
		this.commingDate = commingDate;
	}

	public String getCommingState() {
		return commingState;
	}

	public void setCommingState(String commingState) {
		this.commingState = commingState;
	}

	public String getApp() {
		return app;
	}

	public void setApp(String app) {
		this.app = app;
	}

	public String getParent() {
		return parent;
	}

	public void setParent(String parent) {
		this.parent = parent;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getWechat() {
		return wechat;
	}

	public void setWechat(String wechat) {
		this.wechat = wechat;
	}

	public String getRelation() {
		return relation;
	}

	public void setRelation(String relation) {
		this.relation = relation;
	}

	public String getIsparent() {
		return isparent;
	}

	public void setIsparent(String isparent) {
		this.isparent = isparent;
	}

	public String getParentid() {
		return parentid;
	}

	public void setParentid(String parentid) {
		this.parentid = parentid;
	}

	public Integer getMoonage() {
		return moonage;
	}

	public void setMoonage(Integer moonage) {
		this.moonage = moonage;
	}

	public String getStudent() {
		return student;
	}

	public void setStudent(String student) {
		this.student = student;
	}

	public String getStudentid() {
		return studentid;
	}

	public void setStudentid(String studentid) {
		this.studentid = studentid;
	}

	public String getLostedId() {
		return lostedId;
	}

	public void setLostedId(String lostedId) {
		this.lostedId = lostedId;
	}

	public String getLostedDate() {
		return lostedDate;
	}

	public void setLostedDate(String lostedDate) {
		this.lostedDate = lostedDate;
	}

	public String getLostedReason() {
		return lostedReason;
	}

	public void setLostedReason(String lostedReason) {
		this.lostedReason = lostedReason;
	}

	public String getLostedRemark() {
		return lostedRemark;
	}

	public void setLostedRemark(String lostedRemark) {
		this.lostedRemark = lostedRemark;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
}
